package o;

import android.content.Context;
import com.huawei.gameassistant.buoysettingmodule.BuoyResult;
import com.huawei.hmf.orb.exception.ConnectRemoteException;
import o.fho.b;

class bgj$3 implements b {
    final /* synthetic */ bgj ˊ;
    final /* synthetic */ ffa ˏ;
    final /* synthetic */ Context ॱ;

    bgj$3(bgj o_bgj, Context context, ffa o_ffa) {
        this.ˊ = o_bgj;
        this.ॱ = context;
        this.ˏ = o_ffa;
    }

    public void ˏ(ffd o_ffd, ConnectRemoteException connectRemoteException) {
        if (connectRemoteException != null) {
            Logger.ˋ("GameModeProxy", "connect com.huawei.gameassistant exception", connectRemoteException);
            return;
        }
        fhz ˋ = o_ffd.ˋ("buoysettingmodule");
        if (ˋ == null) {
            Logger.e("GameModeProxy", "Module buoysettingmodule is null");
            return;
        }
        eyb o_eyb = (eyb) ˋ.ॱ(eyb.class);
        if (o_eyb == null) {
            Logger.e("GameModeProxy", "buoyWindowManager is null");
        } else {
            o_eyb.ॱ().ˏ(new fke<BuoyResult>(this) {
                final /* synthetic */ bgj$3 ॱ;

                {
                    this.ॱ = r1;
                }

                public /* synthetic */ void ॱ(Object obj) {
                    ˋ((BuoyResult) obj);
                }

                public void ˎ(fkg o_fkg) {
                }

                public void ˋ(BuoyResult buoyResult) {
                    bgj.ˊ(this.ॱ.ˊ, this.ॱ.ॱ, buoyResult);
                }

                public void ˊ(Exception exception) {
                    this.ॱ.ˏ.ॱ();
                }

                public void ॱ() {
                    this.ॱ.ˏ.ॱ();
                }
            });
        }
    }
}
